export const MONTHList = [
    { month: 1, monthName: '1月' },
    { month: 2, monthName: '2月' },
    { month: 3, monthName: '3月' },
    { month: 4, monthName: '4月' },
    { month: 5, monthName: '5月' },
    { month: 6, monthName: '6月' },
    { month: 7, monthName: '7月' },
    { month: 8, monthName: '8月' },
    { month: 9, monthName: '9月' },
    { month: 10, monthName: '10月' },
    { month: 11, monthName: '11月' },
    { month: 12, monthName: '12月' }
];
// 保留两位小数，千分位加逗号
export const moneyFormatter = (value = 0) => (value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',') : value);
